package org.example.springboot.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.springboot.common.entity.BaseEntity;
import org.example.springboot.common.utils.DateUtils;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 灌溉日志
 *
 * @author Fz
 * @since 1.0.0 2024-02-26
 */
@Data
public class IrrigationLogVO {

    private Long id;

    private String uuid;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createDate;

    /**
     * 最后更新时间
     */
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date updateDate;

    private Long userId;

    /**
     * 类型
     */
    @NotBlank(message = "日志类型不能为空")
    private String operationType;

    /**
     * 预警代码
     */
    private String warningCodes;

    /**
     * 操作的详细描述
     */
    @NotBlank(message = "日志描述不能为空")
    private String operationDetail;

    /**
     * 设备编码
     */
    @NotBlank(message = "设备编码不能为空")
    private String deviceNo;

}